{messages}
<table cellspacing="0" width="100%" class="forumline">
<tr>
	<td class="row-header" colspan="2">
		<span>
			{language text='Mod_Chat.chat_rooms'}
		</span>
	</td>
</tr>
<tr>
    <td class="catBottom" colspan="2">
    <form method="post" action="{url link='admin.extra.chat'}">
        {language text='Mod_Chat.add_new_room'}: <input type="text" name="new" value="" /> <input type="submit" value="{language text='Mod_Chat.add'}" />
	</form>
    </td>
</tr>
<tr>
	<th style="width:80%;">{language text='Mod_Chat.name'}</th>
	<th style="width:20%;">{language text='Mod_Chat.actions'}</th>
</tr>
{foreach from=$aRows item=aRow}
<tr>
	<td class="row1">
	<form method="post" action="{url link='admin.extra.chat'}">
	<div><input type="hidden" name="eid" value="{$aRow.roomid}" /></div>
		<input type="text" name="text" value="{$aRow.name|escape}" /> <input type="submit" value="{language text='Mod_Chat.edit'}" />
	</form>
	</td>
	<td class="row1" style="text-align:center;">
		<a href="{url link='admin.extra.chat' did=$aRow.roomid}" onclick="if ( !sure('') ) return false;">{language text='Mod_Chat.delete'}</a>
	</td>
</tr>
{/foreach}
</table>
